//
//  BDPayViewController.h
//  BadBoy
//
//  Created by wen on 2017/7/7.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDBaseViewController.h"

typedef NS_ENUM(NSUInteger, BDProductPayType) {
    BDProductPayTypePost                =1,     //购买帖子
    BDProductPayTypeProduct             =2,     //购买商品
    BDProductPayTypeTransferToShop      =3,     //转账给商家
    BDProductPayTypeCoupon              =4,     //购买套餐
    BDProductPayTypeTransferToUser      =5,     //转账给用户
    BDProductPayTypeSendRedEnvelope     =6,     //发红包
    BDProductPayTypeVIP                 =100,   //购买vip，因为页面不一样，所以这里单独出来
    BDProductPayTypeTopUp       //充值
};

@interface BDPayViewController : BDBaseViewController

- (instancetype)initWithPaySuccessedBlock:(void(^)())successedBlock;

@property (nonatomic, strong) id product;
@property (nonatomic, strong) NSString *shopTitle;
@property (nonatomic, strong) NSDecimalNumber *price;
@property (nonatomic, assign) BDProductPayType payType;
@property (nonatomic, strong) NSString *productId;

@end
